﻿namespace Xms.Abp.Components;

public class CurrencyColumn : Column<decimal>
{
    public CurrencyColumn()
    {
        Format = "N2";
        Style = "text-align:right;";
        HeaderStyle = "text-align:right;";
        Width = "100";

        ChildContent = builder =>
        {
            builder.AddContent(0, Field.ToString(Format));
        };
    }
}
